import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  //分页获取物料出库列表
  GetOutStockBillPageView(data?: any) {
    return request({
      url: '/api/OutStockBill/GetOutStockBillPageView',
      method: 'post',
      data,
    });
  },
  //分页获取申请单出库列表
  GetRequestOutStockPageList(data?: any) {
    return request({
      url: '/api/OutStockBill/GetRequestOutStockPageList',
      method: 'post',
      data,
    });
  },
  //修改出库单状态
  UpdateOutStockState(data?: any) {
    return request({
      url: '/api/OutStockBill/UpdateOutStockState',
      method: 'post',
      data,
    });
  },
  //获取单条物料出库信息
  GetSingleOutStockBillView(data?: any) {
    return request({
      url: '/api/OutStockBill/GetSingleOutStockBillView',
      method: 'post',
      data,
    });
  },
  //修改物料出库单
  UpdateOutStockBill(data?: any) {
    return request({
      url: '/api/OutStockBill/UpdateOutStockBill',
      method: 'post',
      data,
    });
  },
  //创建物料出库单
  CreateOutStockBill(data?: any) {
    return request({
      url: '/api/OutStockBill/CreateOutStockBill',
      method: 'post',
      data,
    });
  },
  //获取申请单的明细数据（比如生产领料明细）
  GetOutStockRequestDetailViewList(data?: any) {
    return request({
      url: '/api/OutStockBill/GetOutStockRequestDetailViewList',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
